/*
 * @Author: Arcanum
 * @Copyright: 2010 by Mastercoding.NET
 * @Date: 23. July 2010
 * @File: vertices.h
 */

#ifndef VERTICES_H
#define	VERTICES_H

const float wpx = 0.007208333f;
const float hpx = 0.012720588f;

const float wpx2 = 0.00390625f;
const float hpx2 = 0.001953125f;

struct spPt
{
    float b, h, x, y;
};

spPt sprPt[15] =
{
    { 20.5f*wpx2, 20.5f*hpx2, 4*wpx2, 332*hpx2 }, //BLK0
    { 20.5f*wpx2, 20.5f*hpx2, 29*wpx2, 331*hpx2 },//BLK1
    { 20.5f*wpx2, 20.5f*hpx2, 54*wpx2, 332*hpx2 },//BLK2
    { 20.5f*wpx2, 20.5f*hpx2, 56*wpx2, 307*hpx2 },//BLK3
    { 20.5f*wpx2, 20.5f*hpx2, 56*wpx2, 282*hpx2 },//BLK4
    { 20.5f*wpx2, 20.5f*hpx2, 56*wpx2, 257*hpx2 },//BLK5
    { 20.5f*wpx2, 20.5f*hpx2, 56*wpx2, 232*hpx2 }, //BLK6
    { 0, 0, 0, 0 }, //BLK7
    { 0, 0, 0, 0 }, //BLK8
    { 0, 0, 0, 0 }, //BLK9
    { 4*wpx2, 325*hpx2, 4*wpx2, 3*hpx2 }, //BG1
    { 4*wpx2, 325*hpx2, 17*wpx2, 3*hpx2 }, //BG2
    { 4*wpx2, 325*hpx2, 30*wpx2, 3*hpx2 }, //BG3
    { 4*wpx2, 325*hpx2, 43*wpx2, 3*hpx2 }, //BG4
    { 20.5f*wpx2, 20.5f*hpx2, 55*wpx2, 207*hpx2 } //BANANA
};

TexVertex __attribute__((aligned(16))) splash1[4] =
{
    { 0, 0, 0xFFFFFFFF, 0, 0, 0 },
    { 0, 1, 0xFFFFFFFF, 0, 272*0.012720588f, 0 },
    { 1, 0, 0xFFFFFFFF, 515*0.007208333f, 0, 0 },
    { 1, 1, 0xFFFFFFFF, 515*0.007208333f, 272*0.012720588f, 0 }
};

TexVertex __attribute__((aligned(16))) mmpointer[4] =
{
    { 0, 0, 0xFFFFFFFF, 0, 0, 0 },
    { 0, 50*wpx2, 0xFFFFFFFF, 0, 36*hpx, 0 },
    { 50*wpx2, 0, 0xFFFFFFFF, 36*wpx, 0, 0 },
    { 50*wpx2, 50*wpx2, 0xFFFFFFFF, 36*wpx, 36*hpx, 0 }
};

TexVertex __attribute__((aligned(16))) blkv[7][4] =
{
    {
        { sprPt[0].x, sprPt[0].y, 0xFFFFFFFF, 0, 0, 0.0001f },
        { sprPt[0].x, sprPt[0].y+sprPt[0].h, 0xFFFFFFFF, 0, 22*hpx, 0.0001f },
        { sprPt[0].x+sprPt[0].b, sprPt[0].y, 0xFFFFFFFF, 22*wpx, 0, 0.0001f },
        { sprPt[0].x+sprPt[0].b, sprPt[0].y+sprPt[0].h, 0xFFFFFFFF, 22*wpx, 22*hpx, 0.0001f }
    },
    {
        { sprPt[1].x, sprPt[1].y, 0xFFFFFFFF, 0, 0, 0.0001f },
        { sprPt[1].x, sprPt[1].y+sprPt[0].h, 0xFFFFFFFF, 0, 22*hpx, 0.0001f },
        { sprPt[1].x+sprPt[1].b, sprPt[0].y, 0xFFFFFFFF, 22*wpx, 0, 0.0001f },
        { sprPt[1].x+sprPt[1].b, sprPt[0].y+sprPt[0].h, 0xFFFFFFFF, 22*wpx, 22*hpx, 0.0001f }
    },
    {
        { sprPt[2].x, sprPt[2].y, 0xFFFFFFFF, 0, 0, 0.0001f },
        { sprPt[2].x, sprPt[2].y+sprPt[2].h, 0xFFFFFFFF, 0, 22*hpx, 0.0001f },
        { sprPt[2].x+sprPt[2].b, sprPt[2].y, 0xFFFFFFFF, 22*wpx, 0, 0.0001f },
        { sprPt[2].x+sprPt[2].b, sprPt[2].y+sprPt[2].h, 0xFFFFFFFF, 22*wpx, 22*hpx, 0.0001f }
    },
    {
        { sprPt[3].x, sprPt[3].y, 0xFFFFFFFF, 0, 0, 0.0001f },
        { sprPt[3].x, sprPt[3].y+sprPt[3].h, 0xFFFFFFFF, 0, 22*hpx, 0.0001f },
        { sprPt[3].x+sprPt[3].b, sprPt[3].y, 0xFFFFFFFF, 22*wpx, 0, 0.0001f },
        { sprPt[3].x+sprPt[3].b, sprPt[3].y+sprPt[3].h, 0xFFFFFFFF, 22*wpx, 22*hpx, 0.0001f }
    },
    {
        { sprPt[4].x, sprPt[4].y, 0xFFFFFFFF, 0, 0, 0.0001f },
        { sprPt[4].x, sprPt[4].y+sprPt[4].h, 0xFFFFFFFF, 0, 22*hpx, 0.0001f },
        { sprPt[4].x+sprPt[4].b, sprPt[4].y, 0xFFFFFFFF, 22*wpx, 0, 0.0001f },
        { sprPt[4].x+sprPt[4].b, sprPt[4].y+sprPt[4].h, 0xFFFFFFFF, 22*wpx, 22*hpx, 0.0001f }
    },
    {
        { sprPt[5].x, sprPt[5].y, 0xFFFFFFFF, 0, 0, 0.0001f },
        { sprPt[5].x, sprPt[5].y+sprPt[5].h, 0xFFFFFFFF, 0, 22*hpx, 0.0001f },
        { sprPt[5].x+sprPt[5].b, sprPt[5].y, 0xFFFFFFFF, 22*wpx, 0, 0.0001f },
        { sprPt[5].x+sprPt[5].b, sprPt[5].y+sprPt[5].h, 0xFFFFFFFF, 22*wpx, 22*hpx, 0.0001f }
    },
    {
        { sprPt[6].x, sprPt[6].y, 0xFFFFFFFF, 0, 0, 0.0001f },
        { sprPt[6].x, sprPt[6].y+sprPt[6].h, 0xFFFFFFFF, 0, 22*hpx, 0.0001f },
        { sprPt[6].x+sprPt[6].b, sprPt[6].y, 0xFFFFFFFF, 22*wpx, 0, 0.0001f },
        { sprPt[6].x+sprPt[6].b, sprPt[6].y+sprPt[6].h, 0xFFFFFFFF, 22*wpx, 22*hpx, 0.0001f }
    }
};

TexVertex __attribute((aligned(16))) bananav[4] =
{
    { sprPt[14].x, sprPt[14].y, 0xFFFFFFFF, 0, 0, 0.0001f },
    { sprPt[14].x, sprPt[14].y+sprPt[14].h, 0xFFFFFFFF, 0, 22*hpx, 0.0001f },
    { sprPt[14].x+sprPt[14].b, sprPt[14].y, 0xFFFFFFFF, 22*wpx, 0, 0.0001f },
    { sprPt[14].x+sprPt[14].b, sprPt[14].y+sprPt[14].h, 0xFFFFFFFF, 22*wpx, 22*hpx, 0.0001f }
};

Vertex __attribute((aligned(16))) sBar[4] =
{
    { 0xFF5C9400, -2.6f, 263*hpx, 0.001f },
    { 0xFF5C9400, -2.6f, 272*hpx, 0.001f },
    { 0xFF5C9400, 482*wpx, 263*hpx, 0.001f },
    { 0xFF5C9400, 482*wpx, 272*hpx, 0.001f }
};

#include "vertices2.h"

#endif